<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="author" th:content="${settings.admin_global_nickname}"/>
    <meta name="description" th:content="${settings.seo_description}"/>
    <meta name="keywords" th:content="${settings.seo_keywords}"/>
    <link rel="shortcut icon" th:href="${settings.website_logo_small}">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>NotePress - 登录</title>
    <link rel="stylesheet" type="text/css" href="/static/def/plugins/layui/css/layui.css">
    <link rel="stylesheet" type="text/css" href="/static/def/css/layui-theme-nbv5.css">
    <link rel="stylesheet" type="text/css" href="/static/def/plugins/font-awesome/css/font-awesome.min.css">
    <link rel="stylesheet" type="text/css" href="/static/def/css/login-registration.css">
</head>
<body>
<div class="layui-row user-login">
    <div class="layui-col-xs12 layui-col-sm12 layui-col-md12 layui-col-lg12">
        <form class="login-form layui-form">
            <div class="login-header">
                <h2 style="font-style: italic;">
                    <p><img th:src="${settings.website_logo_large}" style="height: 80px;"></p>
                </h2>
            </div>
            <div class="login-body">
                <div class="layui-form-item">
                    <label><i class="layui-icon layui-icon-username"></i> </label>
                    <input type="text" name="npname" lay-verify="username"
                           placeholder="用户名" class="layui-input">
                </div>
                <div class="layui-form-item">
                    <label><i class="layui-icon layui-icon-password"></i> </label>
                    <input type="password" name="nppass" lay-verify="pass"
                           placeholder="密码" class="layui-input">
                </div>
                <div class="layui-form-item">
                    <div class="layui-row layui-col-space15">
                        <div class="layui-col-xs7">
                            <label for="NB-user-vercode" style="margin-top: 8px;margin-left: 7px;"><i
                                    class="layadmin-user-login-icon layui-icon layui-icon-vercode"></i> </label>
                            <input type="text" name="npcode" id="LAY-user-login-vercode" lay-verify="required"
                                   placeholder="验证码" class="layui-input">
                        </div>
                        <div class="layui-col-xs5">
                            <div>
                                <img src="/image/code" class="layadmin-user-login-codeimg" id="NB-user-vercode"
                                     onclick="captchaRefresh(this)">
                            </div>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item ">
                    <button id="v5Login" class="layui-btn layui-btn-fluid" lay-submit lay-filter="npLoginSubmit">登 入
                    </button>
                </div>
                <div class="layui-form-item login-footer">
                    <label th:if="${isOpenQqLogin||isOpenGithubLogin||isOpenGiteeLogin}">社交账号登入</label>
                    <a id="fromQqLogin" href="javascript:doQqLogin();" title="qq登录" th:if="${isOpenQqLogin}"
                       onclick="layer.msg('正在通过QQ登入', {icon:16, shade: 0.1, time:0})"
                       style="border: none;">
                        <svg t="1624774436162" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1243" width="22" height="22">
                            <path d="M203.667 425.126c-4.827 11.263 1.609 19.305 0 62.742 0 11.263-51.483 65.962-72.396 122.268-20.914 54.7-22.523 112.617 8.043 136.749 30.567 22.523 59.525-75.615 64.353-61.134 1.609 6.434 3.219 12.87 6.434 19.305 9.653 27.348 27.348 56.308 51.483 83.658 4.827 6.434-30.567 16.090-51.483 51.483-20.914 35.394 6.434 99.747 111.006 99.747 135.137 0 164.097-46.657 167.315-46.657h20.914c12.87 0 8.043 1.609 19.305 0 6.434 0 72.396 56.308 162.49 46.657 154.447-16.090 130.311-67.569 119.053-99.747-12.87-33.786-57.917-49.872-54.7-51.483 37.003-40.22 43.437-65.962 54.7-102.962 4.827-16.090 40.22 85.266 69.178 61.134 11.263-9.653 33.786-49.872 11.263-136.749-22.523-85.266-67.569-106.181-65.962-122.268 1.609-33.786 1.609-56.308-1.609-62.742-8.043-28.959-25.741-22.523-25.741-28.959 0-170.532-127.095-307.279-284.757-307.279-157.662 0-284.757 138.356-284.757 307.279-1.609 12.87-14.478 3.219-24.132 28.959z"
                                  fill="#0169e8" p-id="1244"></path>
                        </svg>
                    </a>

                    <a id="fromGithubLogin" href="javascript:doGithubLogin();" th:if="${isOpenGithubLogin}"
                       onclick="layer.msg('正在通过GITHUB登入', {icon:16, shade: 0.1, time:0})"
                       style="border: none;margin-left: 10px;" title="github登录">
                        <svg t="1624774461446" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2286" width="23" height="23">
                            <path d="M512 85.333333C276.266667 85.333333 85.333333 276.266667 85.333333 512a426.410667 426.410667 0 0 0 291.754667 404.821333c21.333333 3.712 29.312-9.088 29.312-20.309333 0-10.112-0.554667-43.690667-0.554667-79.445333-107.178667 19.754667-134.912-26.112-143.445333-50.133334-4.821333-12.288-25.6-50.133333-43.733333-60.288-14.933333-7.978667-36.266667-27.733333-0.554667-28.245333 33.621333-0.554667 57.6 30.933333 65.621333 43.733333 38.4 64.512 99.754667 46.378667 124.245334 35.2 3.754667-27.733333 14.933333-46.378667 27.221333-57.045333-94.933333-10.666667-194.133333-47.488-194.133333-210.688 0-46.421333 16.512-84.778667 43.733333-114.688-4.266667-10.666667-19.2-54.4 4.266667-113.066667 0 0 35.712-11.178667 117.333333 43.776a395.946667 395.946667 0 0 1 106.666667-14.421333c36.266667 0 72.533333 4.778667 106.666666 14.378667 81.578667-55.466667 117.333333-43.690667 117.333334-43.690667 23.466667 58.666667 8.533333 102.4 4.266666 113.066667 27.178667 29.866667 43.733333 67.712 43.733334 114.645333 0 163.754667-99.712 200.021333-194.645334 210.688 15.445333 13.312 28.8 38.912 28.8 78.933333 0 57.045333-0.554667 102.912-0.554666 117.333334 0 11.178667 8.021333 24.490667 29.354666 20.224A427.349333 427.349333 0 0 0 938.666667 512c0-235.733333-190.933333-426.666667-426.666667-426.666667z"
                                  fill="#000000" p-id="2287"></path>
                        </svg>
                    </a>

                    <a id="fromGiteeLogin" href="javascript:doGiteeLogin();" th:if="${isOpenGiteeLogin}"
                       onclick="layer.msg('正在通过GITEE登入', {icon:16, shade: 0.1, time:0})"
                       style="border: none;margin-left: 10px;" title="github登录">
                        <svg t="1624774073173" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="551" width="21" height="21">
                            <path d="M512 1024C230.4 1024 0 793.6 0 512S230.4 0 512 0s512 230.4 512 512-230.4 512-512 512z m259.2-569.6H480c-12.8 0-25.6 12.8-25.6 25.6v64c0 12.8 12.8 25.6 25.6 25.6h176c12.8 0 25.6 12.8 25.6 25.6v12.8c0 41.6-35.2 76.8-76.8 76.8h-240c-12.8 0-25.6-12.8-25.6-25.6V416c0-41.6 35.2-76.8 76.8-76.8h355.2c12.8 0 25.6-12.8 25.6-25.6v-64c0-12.8-12.8-25.6-25.6-25.6H416c-105.6 0-188.8 86.4-188.8 188.8V768c0 12.8 12.8 25.6 25.6 25.6h374.4c92.8 0 169.6-76.8 169.6-169.6v-144c0-12.8-12.8-25.6-25.6-25.6z"
                                  fill="#c71d23" p-id="552"></path>
                        </svg>
                    </a>
                    <a th:if="${isOpenRegister}" href="/np-register" style="float: right;"><i style="font-size: 14px;">注册</i></a>
                    <a href="/" style="float: right;margin-right: 5px;"><b>主页</b></a>
                </div>
            </div>
        </form>
    </div>
</div>
<div class="layui-trans layadmin-user-login-footer footer-login" style="z-index: -100;">

    <p><i class="fa fa-graduation-cap"></i> 2020 <a href="//wuwenbin.me/content/u/deployDoc" target="_blank">NotePress &copy;</a></p>
    <p>
        <span><a href="//wuwenbin.me" target="_blank">作者博客</a></span>
        <span><a target="_blank"
                 href="//shang.qq.com/wpa/qunwpa?idkey=40c11d21b7369a629d987dbe15410bc69e65a17abb2b7f9f1e591b2490bf5621">加入QQ群</a></span>
    </p>
</div>

<script src="/static/def/plugins/layui/layui.js"></script>
<script src="/static/def/plugins/jquery/jquery-1.11.3.min.js"></script>
<script src="/static/def/plugins/md5/md5.min.js"></script>
<script src="/static/def/js/notepress.js"></script>
<script th:inline="javascript">
    var isOpenQqLogin = [[${isOpenQqLogin}]];
    var isOpenGithubLogin = [[${isOpenGithubLogin}]];
    var isOpenGiteeLogin = [[${isOpenGiteeLogin}]];
    if (self !== top) {
        parent.window.location.replace(window.location.href);
    }
</script>
<script src="/static/def/js/login.js"></script>
</body>
</html>
